import request from '@/utils/request'

// 配置存储桶CORS
export function configureCors(configId) {
  return request({
    url: '/file/cors/configure',
    method: 'post',
    params: { configId }
  })
}

// 获取存储桶CORS状态
export function getCorsStatus(configId) {
  return request({
    url: '/file/cors/status',
    method: 'get',
    params: { configId }
  })
}

// 删除存储桶CORS配置
export function deleteCors(configId) {
  return request({
    url: '/file/cors/delete',
    method: 'delete',
    params: { configId }
  })
}
